# $Id: PKGBUILD 74836 2012-08-06 23:09:01Z andrea $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=krename
pkgver=4.0.9
pkgrel=2
pkgdesc="A very powerfull batch file renamer for KDE"
arch=('i686' 'x86_64')
url="http://www.krename.net"
license=('GPL')
depends=('kdebase-runtime' 'taglib')
makedepends=('cmake' 'automoc4')
options=('libtool')
install=krename.install
source=(http://downloads.sourceforge.net/project/krename/KDE4%20krename-stable/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('03886a385a16de4c9bc285d25b9816ea97768c9e')

build() {
  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}" install
}
